#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	char ch = 0;
	while (scanf("%c", &ch) == 1)
	{
		if('z' >= ch >= 'a');
		{
			printf("%c", ch - 32);
		
		}
		if ('Z' >= ch >= 'A')
		{
			printf(" % c", ch + 32);
			

		}
		printf("\n");
	}


}